﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ZEBuz.Questionnaire.Lib.Entities
{
    [Serializable]
    public class XMLQuestion
    {
        public string id { get; set; }
        public string content { get; set; }
        public XMLQuestionCategory category { get; set; }
        /// <summary>
        /// 1,2,3,4,5 or 5,4,3,2,1
        /// </summary>
        public int[] opsvalues { get; set; }

        public class XMLQuestionCategory
        {
            public string id { get; set; }
            public string name { get; set; }
            public string desc { get; set; }
            public List<XMLQuestionCategoryLevel> levels { get; set; }
            public string questionIds { get; set; }

            public class XMLQuestionCategoryLevel
            {
                public int min { get; set; }
                public int max { get; set; }
                public string name { get; set; }
                public string text { get; set; }
            }
        }
    }
}
